﻿#ifndef TODOSHOWITEM_H
#define TODOSHOWITEM_H

#include <QWidget>
#include "todoitem.h"
namespace Ui {
class TODOShowItem;
}

class TODOShowItem : public QWidget
{
    Q_OBJECT

public:
    explicit TODOShowItem(TODOItem item,QWidget *parent = nullptr);
    ~TODOShowItem();
    bool isChosen();
private slots:
    void on_textEdit_textChanged();
    void on_checkBox_stateChanged(int arg1);

signals:
    void textChange(QString name,QString updatedText);
private:
    Ui::TODOShowItem *ui;
    TODOItem item;
    bool chosen;
};

#endif // TODOSHOWITEM_H
